package com.logger.common;

import android.os.Environment;
import android.text.TextUtils;

/**
 * 存储工具
 * Created by chenxunlin01 on 2016/1/19.
 */

public class StorageUtils {

    private static String sdcardPath = "";


    /**
     * 获取SD卡路径
     * @return
     */
    public static String getSdcardPath() {
        if (TextUtils.isEmpty(sdcardPath)) {
            sdcardPath = Environment.getExternalStorageDirectory().getPath();
        }

        return sdcardPath;
    }
}
